<?php
namespace app\common\validate;

use think\Validate;

class Label extends Validate
{
    protected $rule = [
        'title' => 'require',
        'coin' => 'require',
        'content' => 'require',
    ];

    protected $message = [
        'title' => '{%title_val}',
        'coin' => '{%coin_val}',
        'des' => '{%des_val}',
    ];

    protected $scene = [
        'add'   => ['title', 'coin'],
        'edit'  => ['title', 'coin'],
        'status' => ['status'],
        'title' => ['title'],
        'url' => ['url'],
    ];
}